/**
 * Created by Administrator on 2016/9/29.
 */


//ѡ�
function bord(){
    $(".TabControl_Left div").css({
        backgroundColor:"#F0F0F0",
        borderLeft:"none",
    })
}
$(".TabControl_Left div").click(function () {
    bord();
    $(this).css({
        borderLeft:"5px solid red",
        backgroundColor:"#fff",
    });
    $(".TabControl_Right").css("display","none");
    $(".TabControl_Right").eq($(".TabControl_Left div").index($(this))).css("display","block")
});
(function(){
  	var aLi = document.querySelectorAll('.main-left-nav li');
    for(var i = 0; i < aLi.length; i++){
        aLi[i].onclick = function(){
            for(var i = 0; i < aLi.length; i++){
                aLi[i].className = '';
            }
            this.className = 'active';
        }
    }
})();